package schema

type Response struct {
	Description string `json:"DESCRIPTION,omitempty" example:"desc"`
	// 既可以包含错误，也可以在正确时包含一些附加信息
	OptStatus interface{} `json:"OPT_STATUS" swaggertype:"string" example:"This is an info/warning/error string"`
	Data      interface{} `json:"DATA" swaggertype:"object"`
}

type ResponseErr struct {
	OptStatus interface{} `json:"OPT_STATUS" swaggertype:"string" example:"This is an error string"`
	Data      interface{} `json:"DATA" swaggertype:"object"`
}

type DefaultResponse struct {
	Description string `json:"DESCRIPTION,omitempty" example:"desc"`
	// 既可以包含错误，也可以在正确时包含一些附加信息
	OptStatus interface{} `json:"OPT_STATUS" swaggertype:"string" example:"This is an info/warning/error string"`
	Error     interface{} `json:"error" swaggertype:"string" example:"This is an error string"`
	Data      interface{} `json:"data" swaggertype:"object"`
}
